<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>心跳动画</title>
</head>
<style>
    body {
        margin: 0;
        padding: 0;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #0b15;

    }

    .heart {
        position: relative;
        transform: rotate(-45deg);
        width: 70px;
        height: 70px;
        background-color: #f20044;
        box-shadow: -10px 10px 90px #f20044;
        animation: heart 0.6s linear infinite;
    }

    @keyframes heart {
        0% {
            transform: rotate(-45deg) scale(1.07);
        }

        80% {
            transform: rotate(-45deg) scale(1.0);
        }

        100% {
            transform: rotate(-45deg) scale(0.9);
        }
    }

    .heart::before {
        content: '';
        position: absolute;
        top: -50%;
        height: 70px;
        width: 70px;
        background: #f20044;
        border-radius: 50px;
        box-shadow: -10px -10px 90px #f20044;
    }

    .heart::after {
        content: '';
        position: absolute;
        right: -50%;
        height: 70px;
        width: 70px;
        background: #f20044;
        border-radius: 50px;
        box-shadow: 10px 10px 90px #f20044;
    }

    .word {
        position: relative;
    }

    .word h2 {
        position: absolute;
        top: 60px;
        left: -240px;
        width: 400px;
        height: 100px;
        line-height: 100px;
        text-align: center;

    }
</style>

<body>
    <div class="heart">
    </div>
    <div class="word">
        <h2>陈一起你过趣味！！！</h2>
    </div>
</body>

</html>